<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商品详情 - 贵州四季康养文旅</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tdesign-icons-vue-next/dist/index.min.css">
    <style>
        body {
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background-color: #f5f5f5;
            color: #333;
        }
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            background-color: transparent;
            transition: background-color 0.3s;
            padding: 12px 16px;
        }
        .navbar.scrolled {
            background-color: #ffffff;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .gallery-container {
            position: relative;
            height: 280px;
            overflow: hidden;
        }
        .gallery-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .badge {
            background-color: rgba(0,82,217,0.1);
            color: #0052d9;
            border-radius: 4px;
            padding: 2px 8px;
            font-size: 12px;
            display: inline-block;
            margin-right: 6px;
        }
        .tab-container {
            display: flex;
            border-bottom: 1px solid #eee;
            background: white;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        .tab {
            flex: 1;
            text-align: center;
            padding: 14px 0;
            font-size: 15px;
            position: relative;
        }
        .tab.active {
            color: #0052d9;
            font-weight: 500;
        }
        .tab.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 3px;
            background-color: #0052d9;
            border-radius: 3px;
        }
        .spec-item {
            display: inline-block;
            border: 1px solid #e5e7eb;
            border-radius: 4px;
            padding: 6px 12px;
            margin-right: 8px;
            margin-bottom: 8px;
            font-size: 14px;
            cursor: pointer;
        }
        .spec-item.active {
            border-color: #0052d9;
            background-color: rgba(0,82,217,0.05);
            color: #0052d9;
        }
        .divider {
            height: 8px;
            background-color: #f5f5f5;
            margin: 12px -16px;
        }
        .section-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
        }
        .section-title::before {
            content: '';
            display: inline-block;
            width: 4px;
            height: 16px;
            background-color: #0052d9;
            border-radius: 2px;
            margin-right: 8px;
        }
        .feature-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 12px;
        }
        .feature-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: rgba(0,82,217,0.1);
            color: #0052d9;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            flex-shrink: 0;
        }
        .bottom-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            padding: 12px 16px;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
            display: flex;
            align-items: center;
            z-index: 100;
        }
        .action-icon {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 12px;
            color: #666;
            padding: 0 12px;
        }
        .quantity-control {
            display: flex;
            align-items: center;
            border: 1px solid #e5e7eb;
            border-radius: 4px;
            overflow: hidden;
        }
        .quantity-btn {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f5f7fa;
            cursor: pointer;
        }
        .quantity-input {
            width: 40px;
            height: 28px;
            border: none;
            text-align: center;
            font-size: 14px;
        }
        .product-detail img {
            max-width: 100%;
            height: auto;
        }
    </style>
</head>
<body>
    <!-- 顶部导航栏 -->
    <div class="navbar">
        <div class="flex justify-between items-center">
            <button class="w-10 h-10 flex items-center justify-center rounded-full bg-black bg-opacity-30">
                <i class="t-icon t-icon-chevron-left text-white"></i>
            </button>
            <div class="flex space-x-3">
                <button class="w-10 h-10 flex items-center justify-center rounded-full bg-black bg-opacity-30">
                    <i class="t-icon t-icon-share text-white"></i>
                </button>
                <button class="w-10 h-10 flex items-center justify-center rounded-full bg-black bg-opacity-30">
                    <i class="t-icon t-icon-heart text-white"></i>
                </button>
            </div>
        </div>
    </div>

    <!-- 商品轮播图 -->
    <div class="gallery-container">
        <img src="https://images.unsplash.com/photo-1591189863430-ab87e7f8e8dd" class="gallery-img" alt="贵州苗药足浴包">
    </div>

    <!-- 内容区域 -->
    <div class="relative -mt-6 rounded-t-3xl bg-white px-4 pt-6 pb-24">
        <!-- 商品基本信息 -->
        <div class="mb-4">
            <div class="flex mb-2">
                <span class="badge">清热解毒</span>
                <span class="badge">舒缓疲劳</span>
                <span class="badge">传统苗药</span>
            </div>
            <h1 class="text-xl font-bold mb-1">贵州苗药足浴包（10袋装）</h1>
            <p class="text-sm text-gray-600 mb-2">
                采用贵州高山草药，纯天然配方，舒缓疲劳，促进血液循环
            </p>
            <div class="flex items-baseline">
                <span class="text-xl font-bold text-red-500">¥128.00</span>
                <span class="text-gray-400 line-through text-sm ml-2">¥168.00</span>
                <span class="text-red-500 text-sm ml-2">7.6折</span>
            </div>
        </div>

        <!-- 已售信息和评分 -->
        <div class="flex justify-between items-center py-3 border-b border-gray-100">
            <div class="text-sm text-gray-500">
                <span>销量 589</span>
                <span class="mx-3">|</span>
                <span>好评率 98%</span>
            </div>
            <div class="flex items-center">
                <span class="text-orange-500 text-sm mr-1">4.9分</span>
                <i class="t-icon t-icon-chevron-right text-gray-400"></i>
            </div>
        </div>

        <!-- 商品规格 -->
        <div class="py-4 border-b border-gray-100">
            <div class="flex justify-between items-center mb-3">
                <span class="text-gray-600">规格</span>
                <div class="flex items-center text-sm text-gray-500">
                    <span>查看全部</span>
                    <i class="t-icon t-icon-chevron-right ml-1"></i>
                </div>
            </div>
            <div>
                <div class="spec-item active">10袋装</div>
                <div class="spec-item">20袋装</div>
                <div class="spec-item">礼盒装</div>
            </div>
        </div>

        <!-- 数量选择 -->
        <div class="py-4 border-b border-gray-100">
            <div class="flex justify-between items-center">
                <span class="text-gray-600">数量</span>
                <div class="quantity-control">
                    <div class="quantity-btn">-</div>
                    <input type="text" class="quantity-input" value="1">
                    <div class="quantity-btn">+</div>
                </div>
            </div>
        </div>

        <!-- 服务说明 -->
        <div class="py-4">
            <div class="flex flex-wrap">
                <div class="flex items-center mr-4 mb-2">
                    <i class="t-icon t-icon-check-circle text-blue-600 mr-1"></i>
                    <span class="text-sm text-gray-600">正品保障</span>
                </div>
                <div class="flex items-center mr-4 mb-2">
                    <i class="t-icon t-icon-check-circle text-blue-600 mr-1"></i>
                    <span class="text-sm text-gray-600">7天无理由退货</span>
                </div>
                <div class="flex items-center mr-4 mb-2">
                    <i class="t-icon t-icon-check-circle text-blue-600 mr-1"></i>
                    <span class="text-sm text-gray-600">48小时发货</span>
                </div>
                <div class="flex items-center mb-2">
                    <i class="t-icon t-icon-check-circle text-blue-600 mr-1"></i>
                    <span class="text-sm text-gray-600">满149元包邮</span>
                </div>
            </div>
        </div>

        <!-- 店铺信息 -->
        <div class="divider"></div>
        <div class="py-4 flex justify-between items-center">
            <div class="flex items-center">
                <div class="w-12 h-12 bg-gray-100 rounded-full overflow-hidden mr-3">
                    <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="店铺头像" class="w-full h-full object-cover">
                </div>
                <div>
                    <h3 class="font-medium">贵州本草康养旗舰店</h3>
                    <p class="text-xs text-gray-500 mt-1">贵州省黔东南州传统工艺企业</p>
                </div>
            </div>
            <button class="px-3 py-1 border border-blue-600 text-blue-600 rounded-full text-sm">进店逛逛</button>
        </div>

        <!-- 商品详情 -->
        <div class="divider"></div>
        <div class="py-4">
            <div class="tab-container">
                <div class="tab active">商品详情</div>
                <div class="tab">规格参数</div>
                <div class="tab">用户评价</div>
            </div>
            
            <div class="mt-6">
                <h2 class="section-title">产品特点</h2>
                
                <div class="feature-item">
                    <div class="feature-icon">
                        <i class="t-icon t-icon-leaf"></i>
                    </div>
                    <div>
                        <h4 class="font-medium">天然草本配方</h4>
                        <p class="text-sm text-gray-600 mt-1">采用贵州高山野生草本植物，遵循传统苗医配方，不添加任何化学成分</p>
                    </div>
                </div>
                
                <div class="feature-item">
                    <div class="feature-icon">
                        <i class="t-icon t-icon-heart"></i>
                    </div>
                    <div>
                        <h4 class="font-medium">活血化瘀，舒缓疲劳</h4>
                        <p class="text-sm text-gray-600 mt-1">促进血液循环，缓解长时间站立或行走导致的足部疲劳，改善睡眠质量</p>
                    </div>
                </div>
                
                <div class="feature-item">
                    <div class="feature-icon">
                        <i class="t-icon t-icon-shop"></i>
                    </div>
                    <div>
                        <h4 class="font-medium">传统工艺制作</h4>
                        <p class="text-sm text-gray-600 mt-1">采用苗族传统工艺制作，每一包足浴包都由经验丰富的苗医把关</p>
                    </div>
                </div>
            </div>
            
            <div class="mt-6">
                <h2 class="section-title">使用方法</h2>
                <div class="text-sm text-gray-600 leading-relaxed">
                    <p class="mb-3">1. 取一袋足浴包放入足浴盆中</p>
                    <p class="mb-3">2. 加入40°C左右的温水，浸泡5-10分钟使有效成分充分释放</p>
                    <p class="mb-3">3. 将双脚浸入水中，泡脚20-30分钟</p>
                    <p>4. 建议每周使用2-3次，效果更佳</p>
                </div>
            </div>
            
            <div class="mt-6 product-detail">
                <h2 class="section-title">详细介绍</h2>
                <img src="https://images.unsplash.com/photo-1591189863430-ab87e7f8e8dd" alt="产品详情图1" class="mb-3">
                <img src="https://images.unsplash.com/photo-1575310082553-61dce1db9633" alt="产品详情图2" class="mb-3">
                <img src="https://images.unsplash.com/photo-1591189863430-ab87e7f8e8dd" alt="产品详情图3">
            </div>
        </div>
    </div>

    <!-- 底部购买栏 -->
    <div class="bottom-bar">
        <div class="flex items-center">
            <div class="action-icon">
                <i class="t-icon t-icon-home text-xl"></i>
                <span>首页</span>
            </div>
            <div class="action-icon">
                <i class="t-icon t-icon-service text-xl"></i>
                <span>客服</span>
            </div>
            <div class="action-icon">
                <i class="t-icon t-icon-shop text-xl"></i>
                <span>店铺</span>
            </div>
        </div>
        <div class="flex-1 flex ml-3">
            <button class="flex-1 bg-blue-100 text-blue-600 py-2 rounded-l-full">加入购物车</button>
            <button class="flex-1 bg-blue-600 text-white py-2 rounded-r-full">立即购买</button>
        </div>
    </div>
</body>
</html> 